# coding:utf-8

class Card(object):
	def __init__(self):
		
		self.id = ''	# UUID
		self.owner = ''    # 所有者 UUID
		self.type = 0	# 种类

		self.exp = 0
		self.level = 0
		self.quality = 0

		self.energy = 0	# 可用潜能点
		self.add_atk = 0
		self.add_def = 0
		self.add_hp = 0
		self.add_spd = 0

	def __repr__(self):
		return '<Card(%s,%s,%d,%d,%d)>' % (self.id, self.owner, self.type, self.level, self.quality)

	# 转化成字典数据
	def to_dictionary(self):
		import copy
		return copy.deepcopy(self.__dict__) # 类比较干净,直接传__dict__就行了

